STEP 10: We now have the ball's x speed, but what is the ball's y speed?

  • Add Get y Speed in the collision event, just under sprite.get_x_speed()
  • Change the new my_var (in front of the .get_y_speed() command!) to ball_y_speed.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)